package com.usian.pojo;

import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @TableName tb_item
 */
@Data
@ApiModel
public class TbItem implements Serializable {
    /**
     * 商品id，同时也是商品编号
     *
     * @mbg.generated Fri Jan 08 16:39:56 CST 2021
     */
    @TableId
    @ApiModelProperty(hidden = true)
    private Long id;

    /**
     * 商品标题
     *
     * @mbg.generated Fri Jan 08 16:39:56 CST 2021
     */
    @ApiModelProperty(value="商品名称",required = true)
    private String title;

    /**
     * 商品卖点
     *
     * @mbg.generated Fri Jan 08 16:39:56 CST 2021
     */
    @ApiModelProperty(value="卖点",required = true)
    private String sellPoint;

    /**
     * 商品价格，单位为：分
     *
     * @mbg.generated Fri Jan 08 16:39:56 CST 2021
     */
    @ApiModelProperty(value="价格",required = true)
    private Long price;

    /**
     * 库存数量
     *
     * @mbg.generated Fri Jan 08 16:39:56 CST 2021
     */
    private Integer num;

    /**
     * 商品条形码
     *
     * @mbg.generated Fri Jan 08 16:39:56 CST 2021
     */
    private String barcode;

    /**
     * 商品图片
     *
     * @mbg.generated Fri Jan 08 16:39:56 CST 2021
     */
    private String image;

    /**
     * 所属类目，叶子类目
     *
     * @mbg.generated Fri Jan 08 16:39:56 CST 2021
     */
    private Long cid;

    /**
     * 商品状态，1-正常，2-下架，3-删除
     *
     * @mbg.generated Fri Jan 08 16:39:56 CST 2021
     */
    private Byte status;

    /**
     * 创建时间
     *
     * @mbg.generated Fri Jan 08 16:39:56 CST 2021
     */
    private Date created;

    /**
     * 更新时间
     *
     * @mbg.generated Fri Jan 08 16:39:56 CST 2021
     */
    private Date updated;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database table tb_item
     *
     * @mbg.generated Fri Jan 08 16:39:56 CST 2021
     */
    private static final long serialVersionUID = 1L;
}